<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>修改图书信息</title>
</head>

<body background="/img/背景.jpg" style="background-size: 100% auto;">
<form action="updateBook" method="post" enctype="multipart/form-data">
    <table border="5" align="center" width=70% height=60%>
        <tr>
            <td colspan="2"><h1>修改图书信息</h1></td>
        </tr>
        <tr>
            <td>编号:</td>
            <td><input type="text" name="id" value="${book.id}" readonly="readonly" size=85/></td>
        </tr>

        <tr>
            <td>书名:</td>
            <td><input type="text" name="name" value="${book.name}" size=85/></td>
        </tr>
        <tr>
            <td>作者:</td>
            <td><input type="text" name="author" value="${book.author}" size=85/></td>
        </tr>
        <tr>
            <td>出版社:</td>
            <td><input type="text" name="bookconcern" value="${book.bookconcern}" size=85/></td>
        </tr>
        <tr>
            <td>出版时间:</td>
            <td><input type="text" name="date" value="${book.date}" size=85/></td>
        </tr>
        <tr>
            <td>简介:</td>
            <td><input type="text" name="synopsis" value="${book.synopsis}" size=85/></td>
        </tr>
        <tr>
            <td>图书图片</td>
            <td>
                <c:if test="${book.pic !=null}">
                    <img src="/img/${book.pic}" width=100 height=100/>
                    <br/>
                </c:if>
                <input type="file" name="book_pic" id="book_pic"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="提交"/>
                <input type="button" value="返回首页" onclick="javascript:window.location.href ='home.jsp';"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>